package com.lanchewuyou.user.driver.yancheui;


import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

import com.lanchewuyou.user.driver.R;
import com.lanchewuyou.user.driver.modul.Config;

/**
 * 展示未完成订单列表fragment
 */
public class YancheMainFragment1 extends android.support.v4.app.Fragment {

    private ListView listView;
    private SwipeRefreshLayout refreshLayout;
    private ImageView yancheBackImg;
    private TextView yancheBackText;
    private static String DRIVERID;

    public YancheMainFragment1() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_yanche_main_fragment1, container, false);
        SharedPreferences sharedPreferences = getActivity().getSharedPreferences(Config.PASSWORD_PATH, Activity.MODE_PRIVATE);
        final String driverId = sharedPreferences.getString("driverid", "");
        listView=(ListView)view.findViewById(R.id.yanche_frg1_listview);
        refreshLayout=(SwipeRefreshLayout)view.findViewById(R.id.yanche_frg1_refresh);
        yancheBackImg=(ImageView)view.findViewById(R.id.yanche_main_back_img1);
        yancheBackText=(TextView)view.findViewById(R.id.yanche_main_back_text1);
        return view;
    }


}
